class BeeFramePolicy < ApplicationPolicy
  attr_reader :user, :bee_frame

  def index?
    return true if user.role.privilege < 50
  end

  def create?
    return true
  #  return true if user.company_id == bee_frame.company_id || (30..50).cover?(user.role.privilege)
  end

  def show?
    return true
  end

  def update?
    return true
  end

  def destroy?
    return true
  end

end
